﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyWeb.Models
{
    /// <summary>
    /// 淮安对接 模型
    /// </summary>
    public class ResultBaseDto
    {
        public string data{ get; set; }
        public string msg { get; set; }
        public int errorcode { get; set; }
    }
    /// <summary>
    /// 任务轮询结果
    /// </summary>
    public class GetTaskListResultDto : ResultBaseDto
    {
        /// <summary>
        ///任务列表
        /// </summary>
        public List<TaskDto> tasks { get; set; } = new List<TaskDto>();
    }
    /// <summary>
    /// 任务
    /// </summary>
    public class TaskDto
    {
        public int taskcmd { get; set; }
        public Guid taskid { get; set; }
        public Guid taskinfo { get; set; }
    }
    /// <summary>
    /// 查询人脸
    /// </summary>
    public class GetFaceResultDto : ResultBaseDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public Guid userid { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 图片编码
        /// </summary>
        public string faceBase64 { get; set; }
        /// <summary>
        /// 身份证号码
        /// </summary>
        public string idcNumber { get; set; }
        public string remarks { get; set; }

        public string reserved { get; set; }
        public int startTime { get; set; }
        public int endTime { get; set; }
    }



    public class UserInfoInput
    {
        public string commandid { get; set; }
        public Guid faceid { get; set; }
    }
    /// <summary>
    /// 刷脸记录
    /// </summary>
    public class AccessInput
    {
        /// <summary>
        /// 用户 ID
        /// </summary>
        public Guid userID { get; set; }
        /// <summary>
        /// 相识度量值
        /// </summary>
        public float similar { get; set; }
        /// <summary>
        /// 现场抓拍照片的 base64 编码
        /// </summary>
        public string photo { get; set; }
        /// <summary>
        /// 刷脸时间
        /// </summary>
        public string dateTime { get; set; }
        /// <summary>
        /// 设备机器码
        /// </summary>
        public string machineCode { get; set; }
        /// <summary>
        /// 屏幕 id
        /// </summary>
        public int screenId { get; set; }
    }
    /// <summary>
    /// 任务轮询
    /// </summary>
    public class TaskInput
    {
        /// <summary>
        /// 分组
        /// </summary>
        public string devGroup { get; set; }
        /// <summary>
        /// 机器码
        /// </summary>
        public string machineCode { get; set; }
        /// <summary>
        /// 设备名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 授权码
        /// </summary>
        public string authCode { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string ip { get; set; }
        /// <summary>
        /// mac地址
        /// </summary>
        public string mac { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public int deviceType { get; set; }
        /// <summary>
        /// 最后刷脸时间
        /// </summary>
        public long lastOnTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remarks { get; set; }
        /// <summary>
        /// 设备状态 =未注册 1已注册
        /// </summary>
        public int statCode { get; set; }
        /// <summary>
        /// 设备版本号
        /// </summary>
        public int versionCode { get; set; }
        /// <summary>
        /// 当前人脸数
        /// </summary>
        public int faceNum { get; set; }
    }
    public class ReportInput
    {
        public string commandid { get; set; }
        public Guid taskid { get; set; }
    }
}